class Statistic {
  Statistic({
    this.readTimes,
    this.readBooks,
    this.quizTimes,
    this.loginPeriod,
    this.timeRange,
  });

  int? readTimes;
  int? readBooks;
  int? quizTimes;
  int? loginPeriod;
  String? timeRange;

  factory Statistic.fromJson(Map<String, dynamic> json) => Statistic(
      readTimes: json["readTimes"],
      readBooks: json["readBooks"],
      quizTimes: json["quizTimes"],
      loginPeriod: json["loginPeriod"],
      timeRange: json["timeRange"]);

  Map<String, dynamic> toJson() => {
        "readTimes": readTimes,
        "readBooks": readBooks,
        "quizTimes": quizTimes,
        "loginPeriod": loginPeriod,
        "timeRange":timeRange
      };
}
